package o;

import android.content.Context;
import android.graphics.drawable.Drawable;
import com.huawei.appmarket.R;
import com.huawei.hms.framework.common.ContainerUtils;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import o.aws.d;
import o.dvd.a;

public class eef extends awj {
    public String ˊ() {
        String str = a.ˊ + eqp.ॱ() + ContainerUtils.FIELD_DELIMITER + "branchid" + ContainerUtils.KEY_VALUE_DELIMITER + axh.ˊ(ContentManager.getInstant().getContext()) + ContainerUtils.FIELD_DELIMITER + "language" + ContainerUtils.KEY_VALUE_DELIMITER + doi.ॱ();
        long ॱ = eua.ˏ().ॱ("protocol_lastest_version_code", -1);
        if (ॱ >= 0) {
            return str + ContainerUtils.FIELD_DELIMITER + "version" + ContainerUtils.KEY_VALUE_DELIMITER + ॱ;
        }
        Logger.ˎ("ProtocolHelperInfo", "invalid agreementVersion: " + ॱ);
        return str;
    }

    public String ˎ() {
        String str = cvx.ˎ("app.privacy.domain") + eqp.ॱ() + ContainerUtils.FIELD_DELIMITER + "branchid" + ContainerUtils.KEY_VALUE_DELIMITER + axh.ˏ(ContentManager.getInstant().getContext()) + ContainerUtils.FIELD_DELIMITER + "language" + ContainerUtils.KEY_VALUE_DELIMITER + doi.ॱ();
        long ॱ = eua.ˏ().ॱ("privacy_lastest_version_code", -1);
        if (ॱ >= 0) {
            return str + ContainerUtils.FIELD_DELIMITER + "version" + ContainerUtils.KEY_VALUE_DELIMITER + ॱ;
        }
        Logger.ˎ("ProtocolHelperInfo", "invalid privacyVersion: " + ॱ);
        return str;
    }

    public String ˏ() {
        return cvx.ˎ("consumer.privacy.domain") + eqp.ॱ() + ContainerUtils.FIELD_DELIMITER + "branchid" + ContainerUtils.KEY_VALUE_DELIMITER + "0" + ContainerUtils.FIELD_DELIMITER + "language" + ContainerUtils.KEY_VALUE_DELIMITER + doi.ॱ();
    }

    public boolean ˋ() {
        return eqp.ᐝ();
    }

    public awr ॱ() {
        awr o_awr = new awr();
        awq ॱˊ = ॱˊ();
        aws ˊॱ = ˊॱ();
        o_awr.ˏ(ॱˊ);
        o_awr.ॱ(ˊॱ);
        return o_awr;
    }

    private aws ˊॱ() {
        Context ˋ = ContentManager.getInstant().getContext();
        CharSequence string = ˋ.getString(R.string.appgellery_agreement_oversea_message);
        String string2 = ˋ.getString(R.string.appgellery_agreement_oversea_internet);
        String string3 = ˋ.getString(R.string.appgellery_agreement_oversea_internet_content);
        String string4 = ˋ.getString(R.string.appgellery_agreement_oversea_phone);
        String string5 = ˋ.getString(R.string.appgellery_agreement_oversea_phone_content);
        String string6 = ˋ.getString(R.string.appgellery_agreement_oversea_agreeing_ex, new Object[]{ˋ.getString(R.string.hispace_user_agreement), Integer.valueOf(18)});
        String str = "";
        aws o_aws = new aws();
        if (eqp.ʻ()) {
            string6 = ˋ.getString(R.string.appgellery_agreement_oversea_agreeing_ru, new Object[]{r7, ˋ.getString(R.string.hispace_privacy_statement)});
            o_aws.ˏ(r9);
        }
        String string7 = ˋ.getString(R.string.appgellery_agreement_oversea_title);
        o_aws.ˏ(string);
        List arrayList = new ArrayList();
        Drawable drawable = ˋ.getResources().getDrawable(R.drawable.ac_protocol_oversea_wifi);
        Drawable drawable2 = ˋ.getResources().getDrawable(R.drawable.ac_protocol_oversea_phone);
        d dVar = new d(drawable, string2, string3);
        d dVar2 = new d(drawable2, string4, string5);
        arrayList.add(dVar);
        arrayList.add(dVar2);
        o_aws.ˋ(string7);
        o_aws.ˎ(arrayList);
        o_aws.ˎ(r7);
        o_aws.ॱ(string6);
        return o_aws;
    }

    private awq ॱˊ() {
        Context ˋ = ContentManager.getInstant().getContext();
        CharSequence string = ˋ.getString(R.string.appgellery_privacy_notice_message);
        String string2 = ˋ.getString(R.string.appgellery_privacy_notice_service_id_title);
        String string3 = ˋ.getString(R.string.appgellery_privacy_notice_service_id_content);
        String string4 = ˋ.getString(R.string.appgellery_privacy_notice_service_device_title);
        String string5 = ˋ.getString(R.string.appgellery_privacy_notice_service_device_content);
        String string6 = ˋ.getString(R.string.appgellery_privacy_notice_service_network_title);
        String string7 = ˋ.getString(R.string.appgellery_privacy_notice_service_network_content);
        String string8 = ˋ.getString(R.string.appgellery_privacy_notice_service_service_title);
        String string9 = ˋ.getString(R.string.appgellery_privacy_notice_service_service_content);
        Object string10 = ˋ.getString(R.string.appgellery_privacy_notice_conent_data);
        if (eqp.ʻ()) {
            string10 = ˋ.getString(R.string.appgellery_privacy_notice_conent_data_ru);
        }
        String string11 = ˋ.getString(R.string.appgellery_privacy_notice_conent_recommend);
        String string12 = ˋ.getString(R.string.appgellery_privacy_notice_more_info, new Object[]{ˋ.getString(R.string.appgellery_privacy_notice_here)});
        String string13 = ˋ.getString(R.string.appgellery_privacy_notice_title);
        awq o_awq = new awq();
        List arrayList = new ArrayList();
        ArrayList arrayList2 = new ArrayList();
        o_awq.ˋ(string13);
        o_awq.ˎ(string);
        awx.a aVar = new awx.a(string2, string3);
        awx.a aVar2 = new awx.a(string4, string5);
        awx.a aVar3 = new awx.a(string6, string7);
        awx.a aVar4 = new awx.a(string8, string9);
        arrayList.add(aVar);
        arrayList.add(aVar2);
        arrayList.add(aVar3);
        arrayList.add(aVar4);
        if (!eqp.ʽ()) {
            arrayList2.add(string10);
        }
        arrayList2.add(string11);
        o_awq.ॱ(arrayList);
        o_awq.ˊ((List) arrayList2);
        o_awq.ˊ(r13);
        o_awq.ˏ(string12);
        return o_awq;
    }

    public awx ʻ() {
        Context ˋ = ContentManager.getInstant().getContext();
        String string = ˋ.getString(R.string.hispace_user_agreement);
        String string2 = ˋ.getString(R.string.protocol_item_private_name);
        String string3 = ˋ.getString(R.string.hispace_terms_of_service_agree, new Object[]{string, string2});
        String string4 = ˋ.getString(R.string.settings_receiver_push_sms_intro_for_china);
        awx o_awx = new awx();
        String ॱ = eqp.ॱ();
        if (eqp.ᐝ() || axe.ˏ(ॱ)) {
            String string5 = ˋ.getString(R.string.privacy_link_desription_network);
            String string6 = ˋ.getString(R.string.privacy_link_desription_others);
            string2 = ˋ.getString(R.string.app_privacy);
            string3 = ˋ.getString(R.string.privacy_link_desription_with_style, new Object[]{string5, string6, string, string2});
            if (axe.ˏ(ॱ)) {
                string3 = ˋ.getString(R.string.privacy_link_desription_with_style_second_center_part1, new Object[]{string5, string6});
                o_awx.ʻ(ˋ.getString(R.string.privacy_link_desription_with_style_second_center_part2, new Object[]{string, string2}));
            }
            o_awx.ˎ(string5);
            o_awx.ॱ(string6);
        }
        o_awx.ˎ((int) R.string.privacy_welcome);
        o_awx.ˋ((int) R.string.client_app_name);
        o_awx.ॱ((int) R.drawable.welcome_app_icon);
        o_awx.ᐝ((int) R.drawable.hwprivacystatement_security_icon);
        if (eqp.ᐝ()) {
            o_awx.ˊ((int) R.string.privacy_welcome_desription);
        } else {
            o_awx.ˊ((int) R.string.privacy_welcome_desription_oversea);
        }
        o_awx.ˏ((int) R.string.mini_welcome_desription);
        o_awx.ˋ(string);
        o_awx.ˊ(string2);
        o_awx.ˏ(string3);
        o_awx.ᐝ(string4);
        return o_awx;
    }

    public String ᐝ() {
        return "35";
    }

    public String ʼ() {
        return "Oversea_2";
    }

    public String ʽ() {
        return eqp.ॱ();
    }

    public String ॱॱ() {
        return doi.ॱ();
    }

    public void ˏ(boolean z) {
        int i = 1;
        euf.ˎ().ˎ(z);
        LinkedHashMap linkedHashMap = new LinkedHashMap(1);
        String str = "switch";
        if (!z) {
            i = 0;
        }
        linkedHashMap.put(str, Integer.valueOf(i));
        dgh.ˋ("131201", linkedHashMap);
    }

    public boolean ॱ(Context context) {
        return eee.ॱ(context);
    }

    public void ˊ(String str, long j) {
        dzl.ˏ(str, j);
    }

    public void ॱ(String str, String str2) {
        dzl.ˋ(str, str2);
    }
}
